package arrayDemo;

import java.util.Arrays;

public class Repeat {

	public static void main(String[] args) {
		// 数组复制
		int arr[] = new int[] {23,42,12,84,10};
		int newarr[]=Arrays.copyOfRange(arr, 0, 3);
		for(int i=0;i<newarr.length;i++) {
			System.out.println(newarr[i]);
		}

	}

}
